←Select platform

InsertItemRange Method

Summary

Inserts an item into the LeadCollection<T> at the specified index.

Syntax
C#
C++/CLI
Python
protected virtual void InsertItemRange( 
   int index, 
   IEnumerable<T> items 
) 
protected:  
   virtual void InsertItemRange( 
      Int32 index, 
      IEnumerable<T>^ items 
   ) 
def InsertItemRange(self,index,items): 

Parameters

index The 0-based index at which  items should be inserted.

items The IEnumerable<T> of objects to insert. The objects can be null for reference types.

Remarks

InsertItemRange is meant to be overridden in a derived class. For a public method to insert multiple items in the LeadCollection<T>, see InsertRange.

LeadCollection<T> accepts null as a valid value for reference types and allows duplicate items.

If  index is equal to Count, items are added to the end of LeadCollection<T>.

This method raises the CollectionChanged event with Add action.

Requirements

Target Platforms

Help Version 23.0.2024.5.22
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.